Part Number Hot Search : 
TPSPX500 MAX4575 NM60N D2313 MA3075WK DT54FC HD64330 DS84L
Product Description
Full Text Search
 

To Download ST10F167 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet ? 42-1701-03 10 september 98 n high performance cpu l 16-bit cpu with 4 stage pipeline l 100ns instruction cycle time at 20mhz cpu clock l 500ns multiplication (16*16 bit) l 1 m s division (32/16 bit) l enhanced boolean bit manipulation facilities l additional instructions to support hll and operating systems l single-cycle context switching support n memory organization l 2k bytes on-chip internal ram l 2k byte s on-chip ex tension ram l 128k bytes on-chip flash memory l flash with 4 independently erasable banks n fast and fl exible bus l programmable external bus characteristics for different address ranges l 8-bit or 16-bit external data bus. l multiplexed or de-multiplexed external address/data buses l five programmable chip-select signals. l hold and hold-acknowledge bus arbitration support n fail-safe protection l programmable watchdog timer n on-chip can 2.0b interface n on-chip bootstrap loader n interrupt l 8-channel pec for single cycle, interrupt driven data transfer l 16-priority-level interrupt system with 56 sources, sample-rate down to 50ns n timers l two multi-functional general-purpose timer units with 5 timers l two 16-bit capture/compare units n a/d converter l 16-channel 10-bit 9.7 m s conversion time. n clock generation l on-chip pll. l direct clock input n up to 111 general purpose i/o lines n programmable threshold (hysteresis) n idle and power down modes l idle current <70ma l power down supply current <100 m a. n 4-channel pwm unit n serial channels l synchronous/asynch serial channel. l high speed synchronous channel n electrical characteristics l power - 5 volt +/- 10% n development support l c-compilers, macro-assembler packages, emulators, evaluation boards, hll-debuggers, simulators, logic analyzer disassemblers, programming boards n package option l 144-pin pqfp package p.0 p.1 p.4 p.6 p.5 p.3 p.2 gpt2/gpt1 asc usart brg cpu-core internal ram wdog interrupt controller pec can p.7 p.8 ebc 10-bit adc brg ssc pwm capcom2 capcom1 osc. xram flash 128kbyte ST10F167 16-bit mcu with 128kbyte flash memory
ST10F167 42-1701-03 2/78 data sheet table of contents 1 introduction --------------------------4 2 pin data - - - - - - - ---------------------5 3 functional description ------------------- 12 4 memory organization - ------------------- 13 5 flash memory - - - --------------------- 14 5.1 flash programming and erasing - - ------------- 15 5.2 flash control register (fcr) - - - -------------- 15 5.2.1 flash memory security - -----------------------18 6 external bus controller - - - - - -------------- 20 7 central processing unit (cpu) - - - - - - --------- 21 8 interrupt system - - - - - - - - -------------- 22 9 capture/compare (capcom) units - - - - - -------- 26 10 general purpose timer (gpt) unit - - - - - - - - - - - - - 28 10.1 gpt1 - --------------------------- 28 10.2 gpt2 - --------------------------- 29 11 pwm module - - - - - - - - - --------------- 31 12 parallel ports ------------------------ 32 13 a/d converter - - - - - - - - - - - ------------- 33 14 serial channels ----------------------- 34 14.1 asco - --------------------------- 34 14.2 high speed synchronous serial channel (ssc) - - - - - - - - 35
ST10F167 data sheet 3/78 42-1701-03 15 can module - - - - - - - ------------------ 36 16 watchdog timer - - - - - - - - - - - - ---------- 37 17 instruction set ----------------------- 38 18 bootstrap loader - --------------------- 40 19 special function registers - - - - - - - - - - - - - - - - - 40 20 electrical characteristics ------------------ 48 20.1 absolute maximum ratings - - - - - - - - - - - - - ----- 48 20.2 parameter interpretation ------------------- 48 20.3 dc characteristics - - -------------------- 49 20.4 a/d converter characteristics ---------------- 52 20.5 ac characteristics - - -------------------- 54 20.5.1 test waveforms ---------------------------54 20.5.2 definition of internal timing - - - - - - - - --------------54 20.5.3 direct drive - - - - - - - - - --------------------55 20.5.4 phase locked loop --------------------------56 20.5.5 external clock drive xtal1 - - - -------------------57 20.5.6 memory cycle variables - - - - - - - - - - - - - - - ---------58 20.5.7 multiplexed bus - - - - - - - - - - - - - - -------------58 20.5.8 demultiplexed bus - - - - - - --------------------65 20.5.9 clkout and ready - - - - --------------------71 20.5.10 external bus arbitration - - - - - - - - - - - - - - - ---------73 21 package mechanical data ------------------ 76 22 ordering information - ------------------- 76 23 revision history ---------------------- 77
ST10F167 42-1701-03 4/78 data sheet 1 introduction the ST10F167 is a new derivative of the st microelectronics 16-bit single-chip cmos microcontrollers. it combines high cpu performance with high peripheral functionality and enhanced i/o capabilities. it also provides on-chip high-speed ram and clock generation via pll. figure 1 logic symbol xtal1 rstin xtal2 rstout nmi ea ready ale rd wr/wrl port 5 16-bit port 6 8-bit port 4 8-bit port 3 15-bit port 2 16-bit port 1 16-bit port 0 16-bit v dd v ss ST10F167 port 7 8-bit port 8 8-bit v aref v agnd
ST10F167 data sheet 5/78 42-1701-03 2 pin data figure 2 pin out ST10F167 p6.0/cs0 p6.1/cs1 p6.2/cs2 p6.3/cs3 p6.4/cs4 p6.5/hold p6.6/hlda p6.7/breq p8.0/cc16io p8.1/cc17io p8.2/cc18io p8.3/cc19io p8.4/cc20io p8.6/cc22io p8.7/cc23io v dd v ss p7.0/pout0 p7.1/pout1 p7.2/pout2 p7.3/pout3 p8.5/cc21io v pp p7.4/cc28i0 p7.5/cc29i0 p7.6/cc30i0 p7.7/cc31i0 p5.0/an0 p5.1/an1 p5.2/an2 p5.3/an3 p5.4/an4 p5.5/an5 p5.6/an6 p5.7/an7 p5.8/an8 p5.9/an9 poh.0/ad8 pol.7/ad7 pol.6/ad6 pol.5/ad5 pol.4/ad4 pol.3/ad3 pol.2ad2 pol.1/ad1 pol.0/ad0 ea ale ready wr/wrl rd v ss v dd p4.7/a23 p4.6/a22/can_txd p4.5/a21/can_rxd p4.4/a20 p4.3/a19 p4.2/a18 p4.1/a17 p4.0/a16 v ss v dd p3.15/clkout p3.13/sclk p3.12/bhe/wrh p3.11/rxd0 p3.10/txd0 p3.9/mtsr p3.8/mrst p3.7/t2in p3.6/t3in v aref v agnd p5.10/an10/t6eud p5.11/an11/t5eud p5.12/an12/t6in p5.13/an13/t5in p5.14/an14/t4eud p5.15/an15/t2eud v ss v dd p2.0/cc0io p2.1/cc1io p2.2/cc2io p2.3/cc3io p2.4/cc4io p2.5/cc5io p2.6/cc6io p2.7/cc7io v ss v dd p2.8/cc8io/ex0in p2.9/cc9io/ex1in p2.10/cc10ioex2in p2.11/cc11ioex3in p2.12/cc12io/ex4in p2.13/cc13io/ex5in p2.14/cc14io/ex6in p2.15/cc15io/ex7in/t7in p3.0/t0in p3.1/t6out p3.2/capin p3.3/t3out p3.4/t3eud p3.5/t4in v ss v dd v ss nmi v dd rstout rstin v ss xtal1 xtal2 v dd p1h.7/a15/cc27io p1h.6/a14/cc26io p1h.5/a13/cc25io p1h.4/a12/cc24io p1h.3/a11 p1h.2/a10 p1h.1/a9 p1h.0/a8 v ss v dd p1l.7/a7 p1l.6/a6 p1l.5/a5 p1l.4/a4 p1l.3/a3 p1l.2/a2 p1l.1/a1 p1l.0/a0 poh.7/ad15 poh.6/ad14 poh.5/ad13 poh.4/ad12 poh.3/ad11 poh.2/ad10 poh.1/ad9 v ss v dd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109
ST10F167 42-1701-03 6/78 data sheet symbol pin input(i)/ output(o) function p6.0 p6.7 1-8 1 ... 5 6 7 8 i/o o ... o i o o port 6 is an 8-bit bidirectional i/o port. it is bit-wise programma- ble for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port 6 outputs can be configured as push/pull or open drain drivers. the following port 6 pins also serve for alternate functions: p6.0 cs0 chip select 0 output ... ... ... p6.4 cs4 chip select 4 output p6.5 hold external master hold request input p6.6 hlda hold acknowledge output p6.7 breq bus request output p8.0 p8.7 9- 16 9 ... 16 i/o i/o ... i/o port 8 is an 8-bit bidirectional i/o port. it is bit-wise programma- ble for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port 8 outputs can be configured as push/pull or open drain drivers. the input threshold of port 8 is selectable (ttl or special). the following port 8 pins also serve for alternate functions: p8.0 cc16io capcom2: cc16 cap.-in/comp.out ... ... ... p8.7 cc23io capcom2: cc23 cap.-in/comp.out p7.0 p7.7 19 - 26 19 ... 22 23 ... 26 i/o o ... o i/o ... i/o port 7 is an 8-bit bidirectional i/o port. it is bit-wise programma- ble for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port 7 outputs can be configured as push/pull or open drain drivers. the input threshold of port 7 is selectable (ttl or special). the following port 7 pins also serve for alternate functions: p7.0 pout0 pwm channel 0 output ... ... ... p7.3 pout3 pwm channel 3 output p7.4 cc28io capcom2: cc28 cap.-in/comp.out ... ... ... p7.7 cc31io capcom2: cc31 cap.-in/comp.out table 1 pin description
ST10F167 data sheet 7/78 42-1701-03 p5.0- p5.15 27 36 39 44 39 40 41 42 43 44 i i i i i i i i port 5 is a 16-bit input-only port with schmitt-trigger character- istics. the pins of port 5 also serve as the (up to 16) analog in- put channels for the a/d converter, where p5.x equals anx (analog input channel x), or they serve as timer inputs: p5.10 t6eud gpt2 timer t6 ext.up/down ctrl.input p5.11 t5eud gpt2 timer t5 ext.up/down ctrl.input p5.12 t6in gpt2 timer t6 count input p5.13 t5in gpt2 timer t5 count input p5.14 t4eud gpt1 timer t4 ext.up/down ctrl.input p5.15 t2eud gpt1 timer t2 ext.up/down ctrl.input p2.0- p2.15 47 54 57 - 64 47 ... 54 57 ... 64 i/o i/o ... i/o i/o i ... i/o i i port 2 is a 16-bit bidirectional i/o port. it is bit-wise programma- ble for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port 2 outputs can be configured as push/pull or open drain drivers. the input threshold of port 2 is selectable (ttl or special). the following port 2 pins also serve for alternate functions: p2.0 cc0io capcom: cc0 cap.-in/comp.out ... ... ... p2.7 cc7io capcom: cc7 cap.-in/comp.out p2.8 cc8io capcom: cc8 cap.-in/comp.out, ex0in fast external interrupt 0 input ... ... ... p2.15 cc15io capcom: cc15 cap.-in/comp.out, ex7in fast external interrupt 7 input t7in capcom2 timer t7 count input symbol pin input(i)/ output(o) function table 1 pin description
ST10F167 42-1701-03 8/78 data sheet p3.0- p3.13, p3.15 65 70, 73 80, 81 65 66 67 68 69 70 73 74 75 76 77 78 79 80 81 i/o i/o i/o i o i o i i i i i/o i/o o i/o o o i/o o port 3 is a 15-bit (p3.14 is missing) bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-im- pedance state. port 3 outputs can be configured as push/pull or open drain drivers. the input threshold of port 3 is selectable (ttl or special). the following port 3 pins also serve for alternate functions: p3.0 t0in capcom timer t0 count input p3.1 t6out gpt2 timer t6 toggle latch output p3.2 capin gpt2 register caprel capture input p3.3 t3out gpt1 timer t3 toggle latch output p3.4 t3eud gpt1 timer t3 ext.up/down ctrl.input p3.5 t4in gpt1 timer t4 input for count/gate/reload/capture p3.6 t3in gpt1 timer t3 count/gate input p3.7 t2in gpt1 timer t2 input for count/gate/reload/capture p3.8 mrst ssc master-rec./slave-transmit i/o p3.9 mtsr ssc master-transmit/slave-rec. o/i p3.10 txd0 asc0 clock/data output (asyn./syn.) p3.11 rxd0 asc0 data input (asyn.) or i/o (syn.) p3.12 bhe ext. memory high byte enable signal, wrh ext. memory high byte write strobe p3.13 sclk ssc master clock outp./slave cl. inp. p3.15 clkout system clock output (=cpu clock) p4.0 p4.7 85 - 92 85 90 91 92 i/o o o i o o o port 4 is an 8-bit bidirectional i/o port. it is bit-wise programma- ble for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. in case of an external bus configuration, port 4 can be used to output the segment address lines: p4.0 a16 least significant segment addr. line p4.5 a21 segment address line, can_rxd can receive data input p4.6 a22 segment address line, can_txd can transmit data output p4.7 a23 most significant segment addr. line symbol pin input(i)/ output(o) function table 1 pin description
ST10F167 data sheet 9/78 42-1701-03 rd 95 o external memory read strobe. rd is activated for every exter- nal instruction or data read access. wr/ wrl 96 o external memory write strobe. in wr-mode this pin is activat- ed for every external data write access. in wrl-mode this pin is activated for low byte data write accesses on a 16-bit bus, and for every data write access on an 8-bit bus. see wrcfg in register syscon for mode selection. ready 97 i ready input. when the ready function is enabled, a high level at this pin during an external memory access will force the in- sertion of memory cycle time waitstates until the pin returns to a low level. ale 98 o address latch enable output. can be used for latching the ad- dress into external memory or an address latch in the multi- plexed bus modes. ea 99 i external access enable pin. a low level at this pin during and after reset forces the ST10F167 to begin instruction execution out of external memory. a high level forces execution out of the internal flash memory. port0: p0l.0- p0l.7 p0h.0- p0h.7 100-107 108, 111-117 i/o port0 consists of the two 8-bit bidirectional i/o ports p0l and p0h. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. in case of an external bus configuration, port0 serves as the address (a) and address/data (ad) bus in multiplexed bus modes and as the data (d) bus in demultiplexed bus modes. demultiplexed bus modes: data path width: 8-bit 16-bit p0l.0 p0l.7: d0 d7 d0 - d7 p0h.0 p0h.7: i/o d8 - d15 multiplexed bus modes: data path width: 8-bit 16-bit p0l.0 p0l.7: ad0 ad7 ad0 - ad7 p0h.0 p0h.7: a8 - a15 ad8 - ad15 symbol pin input(i)/ output(o) function table 1 pin description
ST10F167 42-1701-03 10/78 data sheet port1: p1l.0 p1l.7, p1h.0 - p1h.7 118 125 128 135 132 133 134 135 i/o i i i i port1 consists of the two 8-bit bidirectional i/o ports p1l and p1h. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port1 is used as the 16-bit address bus (a) in demultiplexed bus modes and also after switching from a demultiplexed bus mode to a multiplexed bus mode. the following port1 pins also serve for alternate functions: p1h.4 cc24io capcom2: cc24 capture input p1h.5 cc25io capcom2: cc25 capture input p1h.6 cc26io capcom2: cc26 capture input p1h.7 cc27io capcom2: cc27 capture input xtal1 xtal2 138 137 i o xtal1: input to the oscillator amplifier and input to the inter- nal clock generator xtal2: output of the oscillator amplifier circuit. to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. rstin 140 i reset input with schmitt-trigger characteristics. a low level at this pin for a specified duration while the oscillator is running re- sets the ST10F167. an internal pullup resistor permits pow- er-on reset using only a capacitor connected to v ss . rstout 141 o internal reset indication output. this pin is set to a low level when the part is executing, either a hardware, a software or a watchdog timer reset. rstout remains low until the einit (end of initialization) instruction is executed. nmi 142 i non-maskable interrupt input. a high to low transition at this pin causes the cpu to vector to the nmi trap routine. when the pwrdn (power down) instruction is executed, the nmi pin must be low in order to force the ST10F167 to go into power down mode. if nmi is high, when pwrdn is executed, the part will continue to run in normal mode. if not used, pin nmi should be pulled high externally. v aref 37 - reference voltage for the a/d converter. v agnd 38 - reference ground for the a/d converter. symbol pin input(i)/ output(o) function table 1 pin description
ST10F167 data sheet 11/78 42-1701-03 v pp 84 - flash programming voltage. this pin accepts the programming voltage for the on-chip flash eprom of the ST10F167. v dd 46, 82, 136 - digital supply voltage for internal circuitry: + 5 v during normal operation and idle mode. 2.5 v during power down mode 17, 56, 72, 93, 109,126 ,144 - digital supply voltage for port drivers: + 5 v during normal operation and idle mode v ss 45, 83, 139 - digital ground for internal circuitry. 18, 55, 71, 94, 110,127 ,143 - digital ground for port drivers. symbol pin input(i)/ output(o) function table 1 pin description
ST10F167 42-1701-03 12/78 data sheet 3 functional description the architecture of the ST10F167 combines advantagesof both risc and cisc processors and an advanced peripheral subsystem. the following block diagram gives an overview of the different on-chip components and the high bandwidth internal bus structure of the ST10F167. figure 3 block diagram port 0 port 1 port 4 port 6 port 5 port 3 port 2 gpt1 gpt2 asc usart brg internal flash memory cpu-core internal ram watchdog interrupt controller 8 8 15 16 32 16 pec 16 16 can port 7 port 8 external bus 10-bit adc brg ssc pwm capcom2 capcom1 8 16 16 osc. xram 16 controller 16 8 16
ST10F167 data sheet 13/78 42-1701-03 4 memory organization the memory space of the ST10F167 is configured in a von-neumann architecture. code memory, data memory, registers and i/o ports are organized within the same linear address space of 16 mbytes. the entire memory space can be accessed bytewise or wordwise. particular portions of the on-chip memory have additionally been made directly bit addressable. the ST10F167 provides 128kbytes of on-chip flash memory. 2 kbytes of on-chip internal ram stores user defi ned variables for the system stack, general purpose register banks and even for code. a register bank can consist of up to 16 wordwide (r0 to r15) and/or bytewide (rl0, rh0, , rl7, rh7) so-called general purpose registers (gprs). 1024 bytes (2 * 512 bytes) of the address space are reserved for the special function register areas (sfr space and esfr space). sfrs are wordwide registers which are used for controlling and monitoring functions of the different on-chip units. unused sfr addresses are reserved for other/future members of the st10 family. 2 kbytes of on-chip extension ram (xram) are provided to store user data, user stacks or code. the xram is accessed like external memory and cannot be used for the system stack or register banks, and is not bit-addressable. the xram allows 16-bit accesses with maximum speed. in order to meet the needs of designs where more memory is required than is provided on chip, up to 16 mbytes of external ram and/or rom can be connected to the microcontroller.
ST10F167 42-1701-03 14/78 data sheet 5 flash memory the ST10F167 provides 128kbytes of on-chip, electrically erasable and re-programmable flash eprom. the fl ash memory is organized in 32 bit wide blocks. double word instructions can be fetched in one machine cycle. the fl ash memory can be used for both code and data storage. it is into four banks of sizes 8k, 24k, 48k and 48kbytes. each of these banks can be erased independently. this prevents unnecessary re-programming of the whole fl ash memory when only a partial re-programming is required. the fi rst 32k bytes of the flash memory are located in segment 0 (0h to 007fffh) during reset, and include the reset and interrupt vectors. the rest of the flash memory is mapped in segments 1 and 2 (018000h to 02ffffh). for fl exibility, the fi rst 32k bytes of the flash memory may be remapped to segment 1 (010000h to 017fffh) during initialization. this allows the interrupt vectors to be programmed from the external memory, while retaining the common routines and constants that are programmed into the flash memory. bank addresses (segment 0) size (bytes) 0 1 2 3 000000h to 07fffh and 018000h to 01bfffh 01c000h to 027fffh 028000h to 02dfffh 02e000h to 02ffffh 48k 48k 24k 8k table 2 flash memory bank addresses
ST10F167 data sheet 15/78 42-1701-03 5.1 flash programming and erasing the flash memory is programmedusing the presto f programwrite algorithm. erasure of the flash memory is performed in the program mode using the presto f erase algorithm. timing of the write/erase cycles is automatically generated by a programmable timer and completion is indicated by a fl ag. a second flag indicates that the v pp voltage was correct for the whole programming cycle. this guarantees that a good write/erase operation has been carried out. 5.2 flash control register (fcr) in the standard operation mode, the flash memory can be accessed in the same way as the normal mask-programmable on-chip rom. all, appropriate, direct and indirect addressing modes can be used for reading the flash memory. all programming or erase operations are controlled via a 16-bit register, the fcr. the fcr is not an sfr or gpr. to prevent inadvertent writing to the flash memory, the fcr is locked and inactive during the standard operation mode. the flash memory writing mode must be entered, before a valid access to the fcr is provided. this is done via a special key code instruction sequence. the fcr is virtually mapped into the active address space of the flash memory. it can only be accessed with direct 16-bit (mem) addressing modes. since the fcr is neither byte, nor bit-addressable, only word operand instructions can be used for fcr accesses. by default, the fcr can be accessed with any even address from 000000h to 07fffeh and 018000h to 02fffeh. if the first 32k byte block of the flash memory is mapped to segment 1, the corresponding even fcr addresses are 010000h to 017ffeh. note that dpp referencing and dpp contents must be considered for fcr accesses. if an fcr access is attempted via an odd address, an illegal operand access hardware trap will occur. fcr flash control register: reset condition: 0000h (read) parameter units min typical max word programming time m sec 12.8 12.8 1250 bank erasing time sec 0.5 30 endurance cycles 1000 flash vpp volts 11.4 12.6 table 3 flash parameters
ST10F167 42-1701-03 16/78 data sheet bit number & name description b15 = fwmset flash writing mode set. this bit is set to o1o automatically once the flash writing mode is entered. to exit from the flash writing mode, fwmset must be set to o0o. since only word values can be written to fcr, care must be taken that fwm- set is not cleared inadvertently. therefore, for any command written to fcr (except for the return to the flash standard mode), fwmset must be set to o1o. reset condition of fwmset is o0o. b14-b10 these bits are reserved for future development, they must be written to o0o. b9-b8 = be0,1 bank erase select. select the flash memory bank to be erased. the physical addresses of bank 0 depends on the which flash memory map has been chosen. in flash operating modes, other than the erasing mode, these bits are not signifi cant. at reset be1,0 are set to o00o. b7 = wdww word/double word write. determines the word width used for programming operations: 16-bit (wdww = 0) or 32-bit (wdww = o1o). in flash operation modes, other than the programming mode, this bit is not signifi cant. at reset, wdww is set to a0o. b6-b5 = ckctl0,1 flash timer clock control. control the width (tprg) of the programming or erase pulses applied to the flash memory cells during the operation. tprg varies in an inverse ratio to the clock frequency. to avoid putting the flash memory under crit- ical stress conditions, the width of one single programming or erase pulse and the programming or erase time, must not exceed defi ned values. thus the maximum number of programming or erase attempts, depends on the system clock frequency. reset state: 00. b4 = vppriv v pp revelation bit. read-only bit refl ects the state of the v pp voltage in the flash writing mode. if vppriv is set to o0o, this indicates that v pp is below the thresh- old necessary for reliable programming. the normal reaction to this indi- cation is to check the v pp power supply and to then repeat the intended operation. if the v pp voltage is above a suffi cient margin, vppriv will be set to o1o. the reset state of the vppriv bit depends on the state of the external v pp voltage at the v pp pin. table 4 flash control register bit definition
ST10F167 data sheet 17/78 42-1701-03 b3 = fcvpp flash v pp control bit. read-only bit indicates that the v pp voltage fell below the valid threshold value during a flash programming or erase operation. if fcvpp is set to o1o after such an operation has fi nished, it can mean that the operation was not successful. the v pp power supply should be checked and the operation repeated. if fcvpp is set to o0o, no critical discontinuity in v pp occurred. at reset fcvpp is set to o0o. b2 = fbusy flash busy bit. read-only bit indicates that a flash programming or erase operation is in progress. fbusy is set to o1o by hardware, as soon as the programming or erase command is given. at reset fbusy is set to o0o. note that this bit position is also occupied by the write-only bit rprot. b2 = rprot protection enable bit. this bit set at 1, anded with the otp protection bit, disables any access to the flash, by instructions fetched from the external memory space, or from the internal ram. this write-only bit, is only signifi cant if the general flash memory protection is enabled. if the protection is enabled, the set- ting of rprot determines whether the flash protection is active (rprot=o1o) or inactive (rprot=o0o). rprot is the only fcr bit which can be modifi ed even in the flash standard operation mode, but only by an instruction executed from the flash memory itself. at reset, rprot is set to o1o. note that this bit position is also occupied by the read-only bit fbusy. b1 = fee flash erase/program selection. selects the flash write operation to be performed: erase (fee=o1o) or programming (fee=o0o). together with bits fwe and fwmset, bit fee determined the operation mode of the flash memory. note that setting bits fwe and fee causes the corresponding flash operation mode to be selected but does not launch the execution of the selected operation. if bit fwe was set to o0o, the setting of fee is insignifi cant. at reset, fee is set to o0o. b0 = fwe flash write/read enable. this bit determines whether flash write operations are enabled (fwe=1) or disabled (fwe=0). by defi nition, a flash write operation can be either programming or erasure. together with bits fee and fwm- set, bit fwe determines the operation mode of the flash memory. note that setting bits fwe and fee causes the corresponding flash operation mode to be selected but does not launch the execution of the selected operation. if bit fwe was set to o1o, any read access on a flash memory location means a particular program-verify or erase-verify read operation. flash write operations are disabled at reset. bit number & name description table 4 flash control register bit definition
ST10F167 42-1701-03 18/78 data sheet 5.2.1 flash memory security security and reliability have been enhanced by built-in features: a key code sequence is used to enter the write/erase mode preventing false write cycles, a programmable option (set by the programming board) prevents access to the flash memory from the internal ram or from external memory. if the security option is set, the flash memory can only be accessed from a program within the flash memory area. this protection can only be disabled by instructions executed from the flash memory. figure 4 presto f write algorithm =0 pcount=pnmax? pcount=pcount+1 vr02057a
ST10F167 data sheet 19/78 42-1701-03 figure 5 presto f erase algorithm =0 pcount=enmax? pcount=pcount+1 vr02057b
ST10F167 42-1701-03 20/78 data sheet 6 external bus controller all of the external memory accesses are performed by the on-chip external bus controller (ebc). it can be programmed either to single chip mode when no external memory is required, or to one of four different external memory access modes: ? 16-/18-/20-/24-bit addresses, 16-bit data, demultiplexed ? 16-/18-/20-/24-bit addresses, 16-bit data, multiplexed ? 16-/18-/20-/24-bit addresses, 8-bit data, multiplexed ? 16-/18-/20-/24-bit addresses, 8-bit data, demultiplexed in the demultiplexed bus modes, addresses are output on port1 and data is input/output on port0. in the multiplexed bus modes both addresses and data use port0 for input/ output. important timing characteristics of the external bus interface (memory cycle time, memory tri-state time, length of ale and read write delay) have been made programmable. this gives the choice of a wide range of different types of memories and external peripherals. in addition, different address ranges may be accessed with different bus characteristics. up to 5 external cs signals (4 windows plus default) can be generated in order to save external glue logic. access to very slow memories is supported via a particular `ready' function. a hold/hlda protocol is available for bus arbitration. for applications which require less than 16 mbytes of external memory space, this address space can be restricted to 1 mbyte, 256 kbyte or to 64 kbyte. in this case port 4 outputs four, two or no address lines. if an address space of 16 mbytes is used, it outputs all 8 address lines.
ST10F167 data sheet 21/78 42-1701-03 7 central processing unit (cpu) the cpu includes a 4-stage instruction pipeline, a 16-bit arithmetic and logic unit (alu). dedicated sfrs have been added for a separate multiply and divide unit, a bit-mask generator and a barrel shifter. most of the ST10F167's instructions can be executed in one instruction cycle which requires 100ns at 20mhz cpu clock. for example, shift and rotate instructions are always processed in one machine cycle independent of the number of bits to be shifted. all multiple-cycle instructions have been optimized for speed: branches in 2 cycles, a 16 x 16 bit multiplication in 5 cycles and a 32-/16 bit division in 10 cycles. the `jump cache' pipeline optimization, reduces the execution time of repeatedly performed jumps in a loop, from 2 cycles to 1 cycle. the cpu includes an actual register context. this consists of up to 16 wordwide gprs which are physically allocated within the on-chip ram area. a context pointer (cp) register determines the base address of the active register bank to be accessed by the cpu at a time. the number of register banks is only restricted by the available internal ram space. for easy parameter passing, a register bank may overlap others. a system stack of up to 2048 bytes is provided as a storage for temporary data. the system stack is allocated in the on-chip ram area, and it is accessed by the cpu via the stack pointer (sp) register. two separate sfrs, stkov and stkun, are implicitly compared against the stack pointer value upon each stack access for the detection of a stack overflow or underflow. figure 6 cpu block diagram 16 16 32 flash internal ram 2kbyte r15 r0 general purpose registers r0 r15 mdh mld barrel-shift mul./div.-hw bit-mask gen. alu 16-bit context ptr sp stkov stkun exec. unit instr. ptr instr. reg 4-stage pipeline psw syscon buscon 0 buscon 1 buscon 2 buscon 3 buscon 4 addrsel 1 addrsel 2 addrsel 3 addrsel 4 data pg. ptrs code seg. ptr. cpu rom
ST10F167 42-1701-03 22/78 data sheet 8 interrupt system with an interrupt response time from 250ns to 600ns (in the case of internal program execution), the ST10F167 reacts quickly to the occurrence of non-deterministic events the architecture of the ST10F167 supports several mechanisms for fast and flexible response to service requests that can be generated from various sources internal or external to the microcontroller. any of these interrupt requests can be programmed to being serviced by the interrupt controller or by the peripheral event controller (pec). in a standard interrupt service, program execution is suspended and a branch to the interrupt vector table is performed. for a pec service, just one cycle is `stolen' from the current cpu activity. a pec service is a single byte or word data transfer between any two memory locations with an additional increment of either the pec source or the destination pointer. an individual pec transfer counter is decremented for each pec service, except for the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. pec services are suited to, for example, the transmission or reception of blocks of data. the ST10F167 has 8 pec channels, each of which offers fast interrupt-driven data transfer capabilities. a separate control register which contains an interrupt request fl ag, an interrupt enable fl ag and an interrupt priority bitfield, exists for each of the possible interrupt sources. via its related register, each source can be programmed to one of sixteen interrupt priority levels. once having been accepted by the cpu, an interrupt service can only be interrupted by a higher prioritized service request. for the standard interrupt processing, each of the possible interrupt sources has a dedicated vector location. fast external interrupt inputs are provided to service external interrupts with high precision requirements. these fast interrupt inputs, feature programmable edge detection (rising edge, falling edge or both edges). software interrupts are supported by means of the `trap' instruction in combination with an individual trap (interrupt) number. the table below shows all of the possible ST10F167 interrupt sources and the corresponding hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers. source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number capcom register 0 cc0ir cc0ie cc0int 00'0040h 10h capcom register 1 cc1ir cc1ie cc1int 00'0044h 11h table 5 list of interrupt sources
ST10F167 data sheet 23/78 42-1701-03 capcom register 2 cc2ir cc2ie cc2int 00'0048h 12h capcom register 3 cc3ir cc3ie cc3int 00'004ch 13h capcom register 4 cc4ir cc4ie cc4int 00'0050h 14h capcom register 5 cc5ir cc5ie cc5int 00'0054h 15h capcom register 6 cc6ir cc6ie cc6int 00'0058h 16h capcom register 7 cc7ir cc7ie cc7int 00'005ch 17h capcom register 8 cc8ir cc8ie cc8int 00'0060h 18h capcom register 9 cc9ir cc9ie cc9int 00'0064h 19h capcom register 10 cc10ir cc10ie cc10int 00'0068h 1ah capcom register 11 cc11ir cc11ie cc11int 00'006ch 1bh capcom register 12 cc12ir cc12ie cc12int 00'0070h 1ch capcom register 13 cc13ir cc13ie cc13int 00'0074h 1dh capcom register 14 cc14ir cc14ie cc14int 00'0078h 1eh capcom register 15 cc15ir cc15ie cc15int 00'007ch 1fh capcom register 16 cc16ir cc16ie cc16int 00'00c0h 30h capcom register 17 cc17ir cc17ie cc17int 00'00c4h 31h capcom register 18 cc18ir cc18ie cc18int 00'00c8h 32h capcom register 19 cc19ir cc19ie cc19int 00'00cch 33h capcom register 20 cc20ir cc20ie cc20int 00'00d0h 34h capcom register 21 cc21ir cc21ie cc21int 00'00d4h 35h capcom register 22 cc22ir cc22ie cc22int 00'00d8h 36h capcom register 23 cc23ir cc23ie cc23int 00'00dch 37h capcom register 24 cc24ir cc24ie cc24int 00'00e0h 38h capcom register 25 cc25ir cc25ie cc25int 00'00e4h 39h capcom register 26 cc26ir cc26ie cc26int 00'00e8h 3ah capcom register 27 cc27ir cc27ie cc27int 00'00ech 3bh capcom register 28 cc28ir cc28ie cc28int 00'00e0h 3ch capcom register 29 cc29ir cc29ie cc29int 00'0110h 44h capcom register 30 cc30ir cc30ie cc30int 00'0114h 45h source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number table 5 list of interrupt sources
ST10F167 42-1701-03 24/78 data sheet note two x-peripheral nodes can accept interrupt requests from integrated x-bus peripherals. nodes, where no x-peripherals are connected, may be used to generate software controlled interrupt requests by setting the respective xpnir bit. capcom register 31 cc31ir cc31ie cc31int 00'0118h 46h capcom timer 0 t0ir t0ie t0int 00'0080h 20h capcom timer 1 t1ir t1ie t1int 00'0084h 21h capcom timer 7 t7ir t7ie t7int 00'00f4h 3dh capcom timer 8 t8ir t8ie t8int 00'00f8h 3eh gpt1 timer 2 t2ir t2ie t2int 00'0088h 22h gpt1 timer 3 t3ir t3ie t3int 00'008ch 23h gpt1 timer 4 t4ir t4ie t4int 00'0090h 24h gpt2 timer 5 t5ir t5ie t5int 00'0094h 25h gpt2 timer 6 t6ir t6ie t6int 00'0098h 26h gpt2 caprel register crir crie crint 00'009ch 27h a/d conversion complete adcir adcie adcint 00'00a0h 28h a/d overrun error adeir adeie adeint 00'00a4h 29h asc0 transmit s0tir s0tie s0tint 00'00a8h 2ah asc0 transmit buffer s0tbir s0tbie s0tbint 00'011ch 47h asc0 receive s0rir s0rie s0rint 00'00ach 2bh asc0 error s0eir s0eie s0eint 00'00b0h 2ch ssc transmit sctir sctie sctint 00'00b4h 2dh ssc receive scrir scrie scrint 00'00b8h 2eh ssc error sceir sceie sceint 00'00bch 2fh pwm channel 0...3 pwmir pwmie pwmint 00'00fch 3fh can interface xp0ir xp0ie xp0int 00'0100h 40h x-peripheral node xp1ir xp1ie xp1int 00'0104h 41h x-peripheral node xp2ir xp2ie xp2int 00'0108h 42h pll unlock xp3ir xp3ie xp3int 00'010ch 43h source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number table 5 list of interrupt sources
ST10F167 data sheet 25/78 42-1701-03 the ST10F167 identifies and to processes exceptions or error conditions that arise during run-time, `hardware traps'. hardware traps cause an immediate non-maskable system reaction which is similar to a standard interrupt service (branching to a dedicated vector table location). the occurrence of a hardware trap is additionally signified by an individual bit in the trap fl ag register (tfr). except when another higher prioritized trap service is in progress, a hardware trap will interrupt any actual program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts the table below shows all of the possible exceptions or error conditions that can arise during run-time. exception condition trap flag trap vector vector location trap number trap priority reset functions: hardware reset reset 00'0000 h 00 h iii software reset reset 00'0000 h 00 h iii watchdog timer overfl ow reset 00'0000 h 00 h iii class a hardware traps: non-maskable interrupt nmi nmitrap 00'0008 h 02 h ii stack overfl ow stkof stotrap 00'0010 h 04 h ii stack underfl ow stkuf stutrap 00'0018 h 06 h ii class b hardware traps: undefi ned opcode undopc btrap 00'0028 h 0a h i protected instruction fault prtflt btrap 00'0028 h 0a h i illegal word operand access illopa btrap 00'0028 h 0a h i illegal instruction access illina btrap 00'0028 h 0a h i illegal external bus access illbus btrap 00'0028 h 0a h i reserved [2c h 3c h ] [0b h 0f h ] software traps: trap instruction any [00'0000 h 00'01fc h ] in steps of 4 h any [00 h 7f h ] current cpu priority
ST10F167 42-1701-03 26/78 data sheet 9 capture/compare (capcom) units the capcom units support generation and control of timing sequences on up to 32 channels. it has a maximum resolution of 400 ns at 20mhz cpu clock. the capcom units are typically used to handle high speed i/o tasks such as pulse and waveform generation, pulse width modulation (pmw), digital to analog (d/a) conversion, software timing, or time recording relative to external events. four 16-bit timers (t0/t1, t7/t8) with reload registers, provide two independent time bases for the capture/compare register array. the input clock for the timers is programmable to several pre-scaled values of the internal system clock, or may be derived from an overflow/underflow of timer t6 in module gpt2. this provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specific requirements. in addition, external count inputs for capcom timers t0 and t7 allow event scheduling for the capture/compare registers relative to external events. both of the two capture/compare register arrays contain 16 dual purpose capture/compare registers, each of which may be individually allocated to either capcom timer t0 or t1 (t7 or t8, respectively), and programmed for capture or compare function. each register has one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin (except for cc24...cc27) to indicate the occurrence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (`captured) into the capture/compare register in response to an external event at the port pin which is associated with this register. in addition, a specifi c interrupt request for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. when a match occurs between the timer value and the value in a capture/ compare register, specific actions will be taken, based on the selected compare mode.
ST10F167 data sheet 27/78 42-1701-03 the input frequencies f tx for tx are determined as a function of the cpu clocks. the formulas are detailed in the user manual. the timer input frequencies, resolution and periods which result from the selected pre-scaler option in txi when using a 20mhz cpu clock are listed in the table below. the numbers for the timer periods are based on a reload value of 0000 h . note that some numbers may be rounded to 3 significant fi gures. compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set `1' on match; pin reset `0' on compare time overfl ow; only one compare event per timer period is generated double register mode two registers operate on one pin; pin toggles on each compare match; several compare events per timer period are possible. table 6 compare modes f cpu = 20mhz timer input selection txi 000 b 001 b 010 b 011 b 100 b 101 b 110 b 111 b pre-scaler for f cpu 8 16 32 64 128 256 512 1024 input frequency 2.5 mhz 1.25 mhz 625 khz 313 khz 156 khz 78.1 khz 39.1 khz 19.5 khz resolution 400ns 800ns 1.60 m s 3.20 m s 6.40 m s 12.8 m s 25.6 m s 51.2 m s period 26.2ms 52.4ms 105ms 210ms 419ms 839ms 1.68s 3.36s table 7 capcom timer input frequencies, resolution and periods
ST10F167 42-1701-03 28/78 data sheet 10 general purpose timer (gpt) unit the gpt unit is a flexible multifunctional timer/counter structure. it may be used for many different time-related tasks such as: event timing and counting, pulse width and duty cycle measurements, pulse generation or pulse multiplication. the gpt unit incorporates five 16-bit timers which are organized in two separate modules, gpt1 and gpt2. each timer, in each module may operate independently in a number of different modes, or may be concatenated with another timer of the same module. 10.1 gpt1 each of the three timers t2, t3, t4 of module gpt1 can be configured individually for one of three basic modes of operation: timer , gated timer , and counter mode. in timer mode, the input clock for a timer is derived from the cpu clock, divided by a programmable prescaler. counter mode allows a timer to be clocked in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode where the operation of a timer is controlled by the `gate' level on an external input pin. each timer has one associated port pin (txin) which serves as gate or clock input. table 8 gpt1 timer input frequencies, resolution and periods lists the timer input frequencies, resolution and periods for each pre-scaler option at 25 mhz cpu clock. this also applies to the gated timer mode of t3 and to the auxiliary timers t2 and t4 in timer and gated timer mode. the count direction (up/down) for each timer is programmable by software or may be altered dynamically by an external signal on a port pin (txeud) to facilitate, for example, position tracking. timer t3 has output toggle latches (txotl) which changes state on each timer over-flow/ underfl ow. the state of this latch may be output on port pins (txout) e. g. for time out monitoring of external hardware components, or may be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. f cpu = 20mhz timer input selection t2i / t3i / t4i 000b 001b 010b 011b 100b 101b 110b 111b pre scaler 8 16 32 64 128 256 512 1024 input frequency 2.5 mhz 1.25 mhz 625 khz 313 khz 156 khz 78.1 khz 39.1 khz 19.5 khz resolution 400ns 800ns 1.60 m s 3.20 m s 6.40 m s 12.8 m s 25.6 m s 51.2 m s period 26.2ms 52.4ms 105ms 210ms 419ms 839ms 1.68s 3.36s table 8 gpt1 timer input frequencies, resolution and periods
ST10F167 data sheet 29/78 42-1701-03 in addition to their basic operating modes, timers t2 and t4 may be confi gured as reload or capture registers for timer t3. when used as capture or reload registers, timers t2 and t4 are stopped. the contents of timer t3 are captured into t2 or t4 in response to a signal at their associated input pins (txin). timer t3 is reloaded with the contents of t2 or t4, triggered, either by an external signal, or by a selectable state transition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be constantly generated without software intervention. 10.2 gpt2 the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both timers can be clocked with an input clock which is derived from the cpu clock via a programmable prescaler or with external signals. the count direction (up/down) for each timer is programmable by software or may additionally be altered dynamically by an external signal on a port pin (txeud). concatenation of the timers is supported by the output toggle latch (t6otl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, or it may be output on a port pin (t6out). the overflows/underflows of timer t6 can additionally be used to clock the capcom timers t0 or t1, and to cause a reload from the caprel register. the caprel register may capture the contents of timer t5 based on an external signal transition on the corresponding port pin (capin), and timer t5 may optionally be cleared after the capture procedure. this allows absolute time differences to be measured or pulse multiplication to be performed without software overhead. table 9 gpt2 timer input frequencies, resolution and period lists the timer input frequencies, resolution and periods for each pre-scaler option at 25 mhz cpu clock. this also applies to the gated timer mode of t6 and to the auxiliary timer t5 in timer and gated timer mode. f cpu = 20mhz timer input selection t5i / t6i 000 b 001 b 010 b 011 b 100 b 101 b 110 b 111 b pre-scaler factor 4 8 16 32 64 128 256 512 input frequency 5 mhz 2.5 mhz 1.25 mhz 625 khz 313 khz 156 khz 78.1 khz 39.1 khz resolution 200ns 400ns 800ns 1.60 m s 3.20 m s 6.40 m s 12.8 m s 25.6 m s period 13.11ms 26.2ms 52.4ms 105ms 210ms 419ms 839ms 1.68s table 9 gpt2 timer input frequencies, resolution and period
ST10F167 42-1701-03 30/78 data sheet figure 7 block diagram of gpt1 figure 8 block diagram of gpt2 2 n n=3...10 2 n n=3...10 2 n n=3...10 t2eud t2in cpu clock cpu clock cpu clock t3in t4in t3eud t4eud t2 mode control t3 mode control t4 mode control gpt1 timer t2 gpt1 timer t3 gpt1 timer t4 t3otl reload capture u/d u/d reload capture interrupt request interrupt request interrupt request t3out u/d 2n n=2...9 2n n=2...9 t5eud t5in cpu clock cpu clock t6in t6eud t5 mode control t6 mode control gpt2 timer t5 gpt2 timer t6 u/d interrupt request u/d gpt2 caprel t60tl toggle ff t6out capin reload interrupt request to capcom timers capture clear interrupt request
ST10F167 data sheet 31/78 42-1701-03 11 pwm module the pulse width modulation unit can generate up to four pwm output signals using edge-aligned or centre-aligned pwm. in addition, the pwm module can generate pwm burst signals and single shot outputs. the table below shows the pwm frequencies for different resolutions. the level of the output signals is selectable and the pwm module can generate interrupt requests. mode 0 resolution 8-bit 10-bit 12-bit 14-bit 16-bit cpu clock/1 50ns 78.13 khz 19.53khz 4.883khz 1.221khz 0.305khz cpu clock/64 3.2ns 1.221khz 305.2 hz 76.29hz 19.07hz 4.768hz mode 1 resolution 8-bit 10-bit 12-bit 14-bit 16-bit cpu clock/1 50ns 39.06khz 9.766khz 2.441khz 610.4hz 152.6hz cpu clock/64 3.2ns 610.4hz 152.6 hz 38.15hz 9.537hz 0hz table 10 pwm unit frequencies and resolution at 20mhz cpu clock figure 9 block diagram of pwm module
ST10F167 42-1701-03 32/78 data sheet 12 parallel ports the ST10F167 provides up to 111 i/o lines which are organized into eight input/output ports and one input port. all port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. the i/o ports are true bidirectional ports which are switched to high impedance state when confi gured as inputs. the output drivers of three i/o ports can be confi gured (pin by pin) for push/pull operation or open-drain operation via control registers. during the internal reset, all port pins are confi gured as inputs. the input threshold of port 2, port 3, port 7 and port 8 is selectable (ttl or cmos like). the special cmos like input threshold reduces noise sensitivity due to the input hysteresis. the input threshold may be selected individually for each byte of the respective ports. all port lines have programmable alternate input or output functions associated with them. port0 and port1 may be used as address and data lines when accessing external memory, while port 4 outputs the additional segment address bits a23/19/17...a16 in systems where segmentation is enabled to access more than 64kbytes of memory.port 2, port 8 and port 7 are associated with the capture inputs or compare outputs of the capcom units and/or with the outputs of the pwm module. port 6 provides optional bus arbitration signals (breq, hlda, hold) and chip select signals. port 3 includes alternate functions of timers, serial interfaces, the optional bus control signal bhe and the system clock output (clkout). port 5 is used for the analog input channels to the a/d converter or timer control signals. all port lines that are not used for these alternate functions may be used as general purpose i/o lines.
ST10F167 data sheet 33/78 42-1701-03 13 a/d converter a 10-bit a/d converter with 16 multiplexed input channels and a sample and hold circuit has been integratedon-chip for analog signal measurement. it uses a successive approximation method. the sample time (for loading the capacitors) and conversion time is programmable and can be modified for the external circuitry. overrun error detection/protection is provided through the conversion result register (addat). when the result of a previous conversion has not been read from the result register at the time the next conversion is complete, either an interrupt request is generated, or the next conversion is suspended, until the previous result has been read. for applications which require less than 16 analog input channels, the remaining channel inputs can be used as digital input port pins. the a/d converter of the ST10F167 supports four different conversion modes. ? single channel conversion mode: the analog level on a specified channel is sampled once and converted to a digital result. ? single channel continuous mode: the analog level on a specified channel is repeatedly sampled and converted without software intervention. ? auto scan mode: the analog levels on a prespecified number of channels are sequentially sampled and converted. ? auto scan continuous mode: the number of prespecified channels is repeatedly sampled and converted. in addition, channel injection mode injects a channel into a running sequence without disturbing this sequence. the peripheral event controller stores the conversion results in memory without entering and exiting interrupt routines for each data transfer. the following table shows the adc unit conversion clock, sample clock and complete conversion times. adctc conversion clock tcc adstc sample clock tsc complete conversion 00 0.6 m s 00 0.6 m s 9.7 m s 01 reserved 01 reserved 10 2.4 m s 10 9.6 m s 52.9 m s 11 1.2 m s 11 9.6 m s 36.1 m s table 11 adc sample clock and complete conversion times
ST10F167 42-1701-03 34/78 data sheet after each reset and also during normal operation, the adc automatically performs calibration cycles. this automatic self-calibration constantly adjusts the converter to the changing operating conditions (e.g. temperature) and compensates process variations. these calibration cycles are part of the conversion cycle and do not affect the normal operation of the a/d converter. 14 serial channels serial communication with other microcontrollers, processors, terminals or external peripheral components is provided by two serial interfaces. an asynchronous/synchronous serial channel (asc0) and a high-speed synchronous serial channel (ssc). 14.1 asco asc0 supports full-duplex asynchronous communication up to 625 kbaud and half-duplex synchronous communication up to 2.5 mbaud @ 20mhz system clock. the ssc allows half duplex synchronous communication up to 5 mbaud @ 20mhz system clock. for asynchronous operation, the baud rate generator provides a clock with 16 times the rate of the established baud rate. the table below lists various commonly used baud rates together with the required reload values and the deviation errors compared to the intended baudrate. s0brs = `0', f cpu = 20mhz s0brs = `1', f cpu = 20mhz baud rate (baud) deviation error reload value baud rate (baud) deviation error reload value 625000 0.0% 0000 h 416666 0.0% 0000 h 56000 +1.5% / -7.0% 000a h / 000b h 56000 +6.3% / -7.0% 0006 h / 0007 h 38400 +1.7% / -4.3% 000f h / 0010 h 38400 +8.5% / -1.4% 0009 h / 000a h 19200 +1.7% / -1.4% 001f h / 0020 h 19200 +3.3% / -1.4% 0014 h / 0015 h 9600 +0.2% / -1.4% 0040 h / 0041 h 9600 +0.9% / -1.4% 002a h / 002b h 4800 +0.2% /-0.6% 0081 h / 0082 h 4800 +0.9% / -0.2% 0055 h / 0056 h 2400 +0.2% / -0.2% 0103 h / 0104 h 2400 +0.4% / -0.2% 00ac h / 00ad h 1200 +0.2% / -0.0% 0207 h / 0208 h 1200 +0.1% / -0.2% 015a h / 015b h 600 +0.1% / -0.0% 0410 h / 0411 h 600 +0.1% / -0.1% 02b5 h / 02b6 h 76 +0.4% / 0.4% 1fff h / 1fff h 75 +0.0% / 0.0% 15b2 h / 15b3 h 50 +1.7% / 1.7% 1fff h / 1fff h table 12 commonly used baud rates by reload value and deviation errors
ST10F167 data sheet 35/78 42-1701-03 note the deviation errors given in the table above are rounded. using a baudrate crystal will provide correct baudrates without deviation errors. for synchronous operation, the baud rate generator provides a clock with 4 times the rate of the established baud rate. 14.2 high speed synchronous serial channel (ssc) the high-speed synchronous serial interface ssc provides fl exible high-speed serial communication between the ST10F167 and other microcontrollers, microprocessors or external peripherals. the ssc supports full-duplex and half-duplex synchronous communication; the serial clock signal can be generated by the ssc itself (master mode) or be received from an external master (slave mode). data width, shift direction, clock polarity and phase are programmable. this allows communication with spi-compatible devices. transmission and reception of data is double-buffered. a 16-bit baud rate generator provides the ssc with a separate serial clock signal. the serial channel ssc has its own dedicated 16-bit baud rate generator with 16-bit reload capability, allowing baud rate generation independent from the timers. sscbr is the dual-function baud rate generator/reload register. the table below lists some possible baud rates against the required reload values and the resulting bit times for a 20mhz cpu clock. baud rate bit time reload value reserved use a reload value > 0. --- 0000 h 5 mbaud 200 ns 0001 h 3.3 mbaud 303 ns 0002 h 2.5 mbaud 400 ns 0003 h 2 mbaud 500 ns 0004 h 1 mbaud 1 m s 0009 h 100 kbaud 10 m s 0063 h 10 kbaud 100 m s 03e7 h 1 kbaud 1 ms 270f h 152.6 baud 6.6 ms ffff h table 13 synchronous baud rate and reload values
ST10F167 42-1701-03 36/78 data sheet 15 can module the integrated can-module performs the autonomous transmission and reception of can frames in accordance with the can specification v2.0 part b (active). the on-chip can-module can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. the module provides full can functionality for up to 15 message objects. message object 15 may be confi gured for basic can functionality. both modes provide separate masks for acceptance filtering which allows to accept a number of identifi ers in full can mode and also allows to disregard a number of identifi ers in basic can mode. all message objects can be updated independent from the other objects and are equipped for the maximum message length of 8 bytes. the bit timing is derived from the xclk and is programmable up to a data rate of 1 mbaud. the can-module uses two pins to interface to a bus transceiver.
ST10F167 data sheet 37/78 42-1701-03 16 watchdog timer the watchdog timer is a fail-safe mechanism which prevents the microcontroller from malfunctioning for long periods of time. the watchdog timer is always enabled after a reset of the chip and can only be disabled in the time interval until the einit (end of initialization) instruction has been executed. therefore, the chip's start-up procedure is always monitored. the software must be designed to service the watchdog timer before it overflows. if, due to hardware or software related failures, the software fails to do so, the watchdog timer overflows and generates an internal hardware reset. it pulls the rstout pin low in order to allow external hardware components to be reset. the watchdog timer is a 16-bit timer, clocked with the system clock divided either by 2 or by 128. the high byte of the watchdog timer register can be set to a pre-specified reload value (stored in wdtrel. each time it is serviced by the application software, the high byte of the watchdog timer is reloaded. the table below shows the watchdog timer range for 20mhz cpu clock. some numbers are rounded to 3 significant digits. note for security, rewrite wdtcon each time before the watchdog timer is serviced. reload value in wdtrel prescaler for f cpu 2 (wdtin = `0') 128 (wdtin = `1') ff h 25.6 m s 1.64 ms 00 h 6.55 ms 419 ms table 14 watchdog timer range
ST10F167 42-1701-03 38/78 data sheet 17 instruction set the table below lists the instruction set of the ST10F167. more detailed information such as address modes, instruction operation, parameters for conditional execution of instructions, opcodes and a detailed description of each instruction can be found in the ast10 family programming manualo. . mnemonic description bytes add(b) add word (byte) operands 2 / 4 addc(b) add word (byte) operands with carry 2 / 4 sub(b) subtract word (byte) operands 2 / 4 subc(b) subtract word (byte) operands with carry 2 / 4 mul(u) (un)signed multiply direct gpr by direct gpr (16-16-bit) 2 div(u) (un)signed divide register mdl by direct gpr (16-/16-bit) 2 divl(u) (un)signed long divide reg. md by direct gpr (32-/16-bit) 2 cpl(b) complement direct word (byte) gpr 2 neg(b) negate direct word (byte) gpr 2 and(b) bitwise and, (word/byte operands) 2 / 4 or(b) bitwise or, (word/byte operands) 2 / 4 xor(b) bitwise xor, (word/byte operands) 2 / 4 bclr clear direct bit 2 bset set direct bit 2 bmov(n) move (negated) direct bit to direct bit 4 band, bor, bxor and/or/xor direct bit with direct bit 4 bcmp compare direct bit to direct bit 4 bfldh/l bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 cmp(b) compare word (byte) operands 2 / 4 cmpd1/2 compare word data to gpr and decrement gpr by 1/2 2 / 4 cmpi1/2 compare word data to gpr and increment gpr by 1/2 2 / 4 prior determine number of shift cycles to normalize direct word gpr and store result in direct word gpr 2 shl / shr shift left/right direct word gpr 2 rol / ror rotate left/right direct word gpr 2 table 15 instruction set summary
ST10F167 data sheet 39/78 42-1701-03 ashr arithmetic (sign bit) shift right direct word gpr 2 mov(b) move word (byte) data 2 / 4 movbs move byte operand to word operand with sign extension 2 / 4 movbz move byte operand to word operand. with zero extension 2 / 4 jmpa, jmpi, jmpr jump absolute/indirect/relative if condition is met 4 jmps jump absolute to a code segment 4 j(n)b jump relative if direct bit is (not) set 4 jbc jump relative and clear bit if direct bit is set 4 jnbs jump relative and set bit if direct bit is not set 4 calla, calli, callr call absolute/indirect/relative subroutine if condition is met 4 calls call absolute subroutine in any code segment 4 pcall push direct word register onto system stack & call absolute subroutine 4 trap call interrupt service routine via immediate trap number 2 push, pop push/pop direct word register onto/from system stack 2 scxt push direct word register onto system stack and update register with word operand 4 ret return from intra-segment subroutine 2 rets return from inter-segment subroutine 2 retp return from intra-segment subroutine and pop direct word register from system stack 2 reti return from interrupt service subroutine 2 srst software reset 4 idle enter idle mode 4 pwrdn enter power down mode (assumes nmi-pin low) 4 srvwdt service watchdog timer 4 diswdt disable watchdog timer 4 einit signify end-of-initialization on rstout-pin 4 atomic begin atomic sequence 2 extr begin extended register sequence 2 extp(r) begin extended page (and register) sequence 2 / 4 exts(r) begin extended segment (and register) sequence 2 / 4 nop null operation 2 mnemonic description bytes table 15 instruction set summary
ST10F167 42-1701-03 40/78 data sheet 18 bootstrap loader the built-in bootstrap loader of the ST10F167 provides a mechanism to load the startup program through the serial interface after reset. the ST10F167 enters bsl mode when pin p0l.4 is sampled low at the end of a hardware reset. in this case the built-in bootstrap loader is activated independent of the selected bus mode. the bootstrap loader code is stored in a special boot-rom. no part of the standard mask rom or flash memory area is required. the identification byte is returned in c5 h . 19 special function registers the following table lists all ST10F167 sfrs in alphabetical order. bit-addressable sfrs are marked with the letter a b o in column anameo. sfrs within the extended sfr-space (esfrs) are marked with the letter a e o in column aphysical addresso. an sfr can be specified via its individual mnemonic name. depending on the selected addressing mode, an sfr can be accessed via its physical address (using the data page pointers), or via its short 8-bit address (without using the data page pointers).
ST10F167 data sheet 41/78 42-1701-03 name physical address 8-bit address description reset value adcic b ff98h cch a/d converter end of conversion interrupt cont reg 0000h adcon b ffa0h d0h a/d converter control register 0000h addat fea0h 50h a/d converter result register 0000h addat2 f0a0h e 50h a/d converter 2 result register 0000h addrsel1 fe18h 0ch address select register 1 0000h addrsel2 fe1ah 0dh address select register 2 0000h addrsel3 fe1ch 0eh address select register 3 0000h addrsel4 fe1eh 0fh address select register 4 0000h adeic b ff9ah cdh a/d converter overrun error interrupt control reg 0000h buscon0 b ff0ch 86h bus configuration register 0 0xx0h buscon1 b ff14h 8ah bus configuration register 1 0000h buscon2 b ff16h 8bh bus configuration register 2 0000h buscon3 b ff18h 8ch bus configuration register 3 0000h buscon4 b ff1ah 8dh bus configuration register 4 0000h caprel fe4ah 25h gpt2 capture/reload register 0000h cc0 fe80h 40h capcom register 0 0000h cc0ic b ff78h bch capcom register 0 interrupt control register 0000h cc1 fe82h 41h capcom register 1 0000h cc1ic b ff7ah bdh capcom register 1 interrupt control register 0000h cc2 fe84h 42h capcom register 2 0000h cc2ic b ff7ch beh capcom register 2 interrupt control register 0000h cc3 fe86h 43h capcom register 3 0000h cc3ic b ff7eh bfh capcom register 3 interrupt control register 0000h cc4 fe88h 44h capcom register 4 0000h cc4ic b ff80h c0h capcom register 4 interrupt control register 0000h cc5 fe8ah 45h capcom register 5 0000h cc5ic b ff82h c1h capcom register 5 interrupt control register 0000h cc6 fe8ch 46h capcom register 6 0000h cc6ic b ff84h c2h capcom register 6 interrupt control register 0000h table 16 special function registers listed by name
ST10F167 42-1701-03 42/78 data sheet cc7 fe8eh 47h capcom register 7 0000h cc7ic b ff86h c3h capcom register 7 interrupt control register 0000h cc8 fe90h 48h capcom register 8 0000h cc8ic b ff88h c4h capcom register 8 interrupt control register 0000h cc9 fe92h 49h capcom register 9 0000h cc9ic b ff8ah c5h capcom register 9 interrupt control register 0000h cc10 fe94h 4ah capcom register 10 0000h cc10ic b ff8ch c6h capcom register 10 interrupt control register 0000h cc11 fe96h 4bh capcom register 11 0000h cc11ic b ff8eh c7h capcom register 11 interrupt control register 0000h cc12 fe98h 4ch capcom register 12 0000h cc12ic b ff90h c8h capcom register 12 interrupt control register 0000h cc13 fe9ah 4dh capcom register 13 0000h cc13ic b ff92h c9h capcom register 13 interrupt control register 0000h cc14 fe9ch 4eh capcom register 14 0000h cc14ic b ff94h cah capcom register 14 interrupt control register 0000h cc15 fe9eh 4fh capcom register 15 0000h cc15ic b ff96h cbh capcom register 15 interrupt control register 0000h cc16 fe60h 30h capcom register 16 0000h cc16ic b f160h e b0h capcom register 16 interrupt control register 0000h cc17 fe62h 31h capcom register 17 0000h cc17ic b f162h e b1h capcom register 17 interrupt control register 0000h cc18 fe64h 32h capcom register 18 0000h cc18ic b f164h e b2h capcom register 18 interrupt control register 0000h cc19 fe66h 33h capcom register 19 0000h cc19ic b f166h e b3h capcom register 19 interrupt control register 0000h cc20 fe68h 34h capcom register 20 0000h cc20ic b f168h e b4h capcom register 20 interrupt control register 0000h cc21 fe6ah 35h capcom register 21 0000h cc21ic b f16ah e b5h capcom register 21 interrupt control register 0000h cc22 fe6ch 36h capcom register 22 0000h name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 data sheet 43/78 42-1701-03 cc22ic b f16ch e b6h capcom register 22 interrupt control register 0000h cc23 fe6eh 37h capcom register 23 0000h cc23ic b f16eh e b7h capcom register 23 interrupt control register 0000h cc24 fe70h 38h capcom register 24 0000h cc24ic b f170h e b8h capcom register 24 interrupt control register 0000h cc25 fe72h 39h capcom register 25 0000h cc25ic b f172h e b9h capcom register 25 interrupt control register 0000h cc26 fe74h 3ah capcom register 26 0000h cc26ic b f174h e bah capcom register 26 interrupt control register 0000h cc27 fe76h 3bh capcom register 27 0000h cc27ic b f176h e bbh capcom register 27 interrupt control register 0000h cc28 fe78h 3ch capcom register 28 0000h cc28ic b f178h e bch capcom register 28 interrupt control register 0000h cc29 fe7ah 3dh capcom register 29 0000h cc29ic b f184h e c2h capcom register 29 interrupt control register 0000h cc30 fe7ch 3eh capcom register 30 0000h cc30ic b f18ch e c6h capcom register 30 interrupt control register 0000h cc31 fe7eh 3fh capcom register 31 0000h cc31ic b f194h e cah capcom register 31 interrupt control register 0000h ccm0 b ff52h a9h capcom mode control register 0 0000h ccm1 b ff54h aah capcom mode control register 1 0000h ccm2 b ff56h abh capcom mode control register 2 0000h ccm3 b ff58h ach capcom mode control register 3 0000h ccm4 b ff22h 91h capcom mode control register 4 0000h ccm5 b ff24h 92h capcom mode control register 5 0000h ccm6 b ff26h 93h capcom mode control register 6 0000h ccm7 b ff28h 94h capcom mode control register 7 0000h cp fe10h 08h cpu context pointer register fc00h cric b ff6ah b5h gpt2 caprel interrupt control register 0000h csp fe08h 04h cpu code segment pointer register (read only) 0000h dp0l b f100h e 80h p0l direction control register 00h name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 42-1701-03 44/78 data sheet dp0h b f102h e 81h p0h direction control register 00h dp1l b f104h e 82h p1l direction control register 00h dp1h b f106h e 83h p1h direction control register 00h dp2 b ffc2h e1h port 2 direction control register 0000h dp3 b ffc6h e3h port 3 direction control register 0000h dp4 b ffcah e5h port 4 direction control register 00h dp6 b ffceh e7h port 6 direction control register 00h dp7 b ffd2h e9h port 7 direction control register 00h dp8 b ffd6h ebh port 8 direction control register 00h dpp0 fe00h 00h cpu data page pointer 0 register (10 bits) 0000h dpp1 fe02h 01h cpu data page pointer 1 register (10 bits) 0001h dpp2 fe04h 02h cpu data page pointer 2 register (10 bits) 0002h dpp3 fe06h 03h cpu data page pointer 3 register (10 bits) 0003h exicon b f1c0h e e0h external interrupt control register 0000h mdc b ff0eh 87h cpu multiply divide control register 0000h mdh fe0ch 06h cpu multiply divide register high word 0000h mdl fe0eh 07h cpu multiply divide register low word 0000h odp2 b f1c2h e e1h port 2 open drain control register 0000h odp3 b f1c6h e e3h port 3 open drain control register 0000h odp6 b f1ceh e e7h port 6 open drain control register 00h odp7 b f1d2h e e9h port 7 open drain control register 00h odp8 b f1d6h e ebh port 8 open drain control register 00h ones ff1eh 8fh constant value 1's register (read only) ffffh p0l b ff00h 80h port 0 low register (lower half of port0) 00h p0h b ff02h 81h port 0 high register (upper half of port0) 00h p1l b ff04h 82h port 1 low register (lower half of port1) 00h p1h b ff06h 83h port 1 high register (upper half of port1) 00h p2 b ffc0h e0h port 2 register 0000h p3 b ffc4h e2h port 3 register 0000h p4 b ffc8h e4h port 4 register (8 bits) 00h p5 b ffa2h d1h port 5 register (read only) xxxxh name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 data sheet 45/78 42-1701-03 p6 b ffcch e6h port 6 register (8 bits) 00h p7 b ffd0h e8h port 7 register (8 bits) 00h p8 b ffd4h eah port 8 register (8 bits) 00h pecc0 fec0h 60h pec channel 0 control register 0000h pecc1 fec2h 61h pec channel 1 control register 0000h pecc2 fec4h 62h pec channel 2 control register 0000h pecc3 fec6h 63h pec channel 3 control register 0000h pecc4 fec8h 64h pec channel 4 control register 0000h pecc5 fecah 65h pec channel 5 control register 0000h pecc6 fecch 66h pec channel 6 control register 0000h pecc7 feceh 67h pec channel 7 control register 0000h picon f1c4h e e2h port input threshold control register 0000h pp0 f038h e 1ch pwm module period register 0 0000h pp1 f03ah e 1dh pwm module period register 1 0000h pp2 f03ch e 1eh pwm module period register 2 0000h pp3 f03eh e 1fh pwm module period register 3 0000h psw b ff10h 88h cpu program status word 0000h pt0 f030h e 18h pwm module up/down counter 0 0000h pt1 f032h e 19h pwm module up/down counter 1 0000h pt2 f034h e 1ah pwm module up/down counter 2 0000h pt3 f036h e 1bh pwm module up/down counter 3 0000h pw0 fe30h 18h pwm module pulse width register 0 0000h pw1 fe32h 19h pwm module pulse width register 1 0000h pw2 fe34h 1ah pwm module pulse width register 2 0000h pw3 fe36h 1bh pwm module pulse width register 3 0000h pwmcon0b ff30h 98h pwm module control register 0 0000h pwmcon1b ff32h 99h pwm module control register 1 0000h pwmic b f17eh e bfh pwm module interrupt control register 0000h rp0h b f108h e 84h system startup configuration register (rd. only) xxh s0bg feb4h 5ah serial channel 0 baud rate generator reload reg 0000h s0con b ffb0h d8h serial channel 0 control register 0000h name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 42-1701-03 46/78 data sheet s0eic b ff70h b8h serial channel 0 error interrupt control register 0000h s0rbuf feb2h 59h serial channel 0 receive buffer register (read only) xxh s0ric b ff6eh b7h serial channel 0 receive interrupt control register 0000h s0tbic b f19ch e ceh serial channel 0 transmit buffer interrupt control register 0000h s0tbuf feb0h 58h serial channel 0 transmit buffer register (write only) 00h s0tic b ff6ch b6h serial channel 0 transmit interrupt control register 0000h sp fe12h 09h cpu system stack pointer register fc00h sscbr f0b4h e 5ah ssc baudrate register 0000h ssccon b ffb2h d9h ssc control register 0000h ssceic b ff76h bbh ssc error interrupt control register 0000h sscrb f0b2h e 59h ssc receive buffer (read only) xxxxh sscric b ff74h bah ssc receive interrupt control register 0000h ssctb f0b0h e 58h ssc transmit buffer (write only) 0000h ssctic b ff72h b9h ssc transmit interrupt control register 0000h stkov fe14h 0ah cpu stack overflow pointer register fa00h stkun fe16h 0bh cpu stack underflow pointer register fc00h syscon b ff12h 89h cpu system configuration register 0xx0h 1) t0 fe50h 28h capcom timer 0 register 0000h t01con b ff50h a8h capcom timer 0 and timer 1 control register 0000h t0ic b ff9ch ceh capcom timer 0 interrupt control register 0000h t0rel fe54h 2ah capcom timer 0 reload register 0000h t1 fe52h 29h capcom timer 1 register 0000h t1ic b ff9eh cfh capcom timer 1 interrupt control register 0000h t1rel fe56h 2bh capcom timer 1 reload register 0000h t2 fe40h 20h gpt1 timer 2 register 0000h t2con b ff40h a0h gpt1 timer 2 control register 0000h t2ic b ff60h b0h gpt1 timer 2 interrupt control register 0000h t3 fe42h 21h gpt1 timer 3 register 0000h t3con b ff42h a1h gpt1 timer 3 control register 0000h t3ic b ff62h b1h gpt1 timer 3 interrupt control register 0000h name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 data sheet 47/78 42-1701-03 notes 1: the system configuration is selected during reset. 2: bit wdtr indicates a watchdog timer triggered reset. 3: the interrupt control registers xpnic, control interrupt requests from integrated x-bus pe- ripherals. nodes, where no x-peripherals are connected, may be used to generate software controlled interrupt requests by setting the respective xpnir bit. t4 fe44h 22h gpt1 timer 4 register 0000h t4con b ff44h a2h gpt1 timer 4 control register 0000h t4ic b ff64h b2h gpt1 timer 4 interrupt control register 0000h t5 fe46h 23h gpt2 timer 5 register 0000h t5con b ff46h a3h gpt2 timer 5 control register 0000h t5ic b ff66h b3h gpt2 timer 5 interrupt control register 0000h t6 fe48h 24h gpt2 timer 6 register 0000h t6con b ff48h a4h gpt2 timer 6 control register 0000h t6ic b ff68h b4h gpt2 timer 6 interrupt control register 0000h t7 f050h e 28h capcom timer 7 register 0000h t78con b ff20h 90h capcom timer 7 and 8 control register 0000h t7ic b f17ah e beh capcom timer 7 interrupt control register 0000h t7rel f054h e 2ah capcom timer 7 reload register 0000h t8 f052h e 29h capcom timer 8 register 0000h t8ic b f17ch e bfh capcom timer 8 interrupt control register 0000h t8rel f056h e 2bh capcom timer 8 reload register 0000h tfr b ffach d6h trap flag register 0000h wdt feaeh 57h watchdog timer register (read only) 0000h wdtcon ffaeh d7h watchdog timer control register 000xh 2) xp0ic b f186h e c3h can module interrupt control register 0000h xp1ic b f18eh e c7h x-peripheral 1 interrupt control register 0000h xp2ic b f196h e cbh x-peripheral 2 interrupt control register 0000h xp3ic b f19eh e cfh pll interrupt control register 0000h zeros b ff1ch 8eh constant value 0's register (read only) 0000h name physical address 8-bit address description reset value table 16 special function registers listed by name
ST10F167 42-1701-03 48/78 data sheet 20 electrical characteristics 20.1 absolute maximum ratings ambient temperature under bias (ta): ST10F167................................... 40to +85 c storage temperature (tst)................................................................... 65 to +150 c voltage on v dd pins with respect to ground (v ss ) .................................. 0.5 to +6.5 v voltage on any pin with respect to ground (v ss ) ............................. 0.3to v dd +0.3 v input current on any pin during overload condition................................ 10 to +10 ma absolute sum of all input currents during overload condition...........................|100 ma| power dissipation................................................................................................. 1.5 w note stresses above those listed under aabsolute maximum ratingso may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not guaranteed. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during overload conditions (v in >v dd or v in ST10F167 and its demands on the system. where the ST10F167 logic provides signals with their respective timing characteristics, the symbol acco for controller characteristics, is included in the asymbolo column. where the external system must provide signals with their respective timing characteristics to the ST10F167, the symbol asro for system requirement, is included in the asymbolo column.
ST10F167 data sheet 49/78 42-1701-03 20.3 dc characteristics v dd =5v 5% , v ss =0,f cpu = 20mhz, reset active, t a = -40 to +85 c parameter symbol limit values unit test condition min. max. input low voltage (ttl) v il sr 0.5 0.2 v dd 0.1 v input low voltage (special threshold) v ils sr 0.5 2.0 v input high voltage, all except rstin and xtal1 (ttl) v ih sr 0.2 v dd + 0.9 v dd + 0.5 v input high voltage rstin v ih1 sr 0.6 v dd v dd + 0.5 v input high voltage xtal1 v ih2 sr 0.7 v dd v dd + 0.5 v input high voltage (special threshold) v ihs sr 0.8 v dd - 0.2 v dd + 0.5 v input hysteresis (special threshold) hys 400 - mv output low voltage (port0, port1, port 4, ale, rd, wr, bhe, clkout, rstout) v ol cc 0.45 v i ol = 2.4 ma output low voltage (all other outputs) v ol1 cc 0.45 v i ol1 = 1.6 ma output high voltage (port0, port1, port 4, ale, rd, wr, bhe, clkout, rstout) v oh cc 0.9 v dd 2.4 vi oh = 500 m a i oh = 2.4 ma output high voltage 1) (all other outputs) v oh1 cc 0.9 v dd 2.4 vi oh = 250 m a i oh = 1.6 ma input leakage current (port 5) i oz1 cc 1 m a 0.45v < v in ST10F167 42-1701-03 50/78 data sheet notes 1: this specification is not valid for outputs which are switched to open drain mode. in this case the respective output will float and the voltage results from the external circuitry. 2: the maximum current may be drawn while the respective signal line remains inactive. 3: the minimum current must be drawn in order to drive the respective signal line active. 4: this specification is only valid during reset, or during hold- or adapt-mode. port 6 pins are only affected, if they are used for cs output and the open drain function is not enabled. 5: not 100% tested, guaranteed by design characterization. 6: the supply current is a function of the operating frequency. this dependency is illustrated in the figure below. these parameters are tested at v ddmax and 20 mhz cpu clock with all outputs disconnect- ed and all inputs at v il or v ih . 7: this parameter is tested including leakage currents. all inputs (including pins configured as inputs) at 0 v to 0.1 v or at v dd 0.1 v to v dd ,v ref = 0 v, all outputs (including pins con- figured as outputs) disconnected. 8: overload conditions occur if the standard operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range (i.e. v ov >v dd +0.5v or v ov ST10F167 data sheet 51/78 42-1701-03 solute sum of input overload currents on all port pins may not exceed 50 ma . 9: power down current is to be defined. figure 10 supply/idle current as a function of operating frequency [ma] f cpu [mhz] 510 15 20 150 100 50 10 i cctyp i idmax i ccmax i idtyp
ST10F167 42-1701-03 52/78 data sheet 20.4 a/d converter characteristics v dd =5v 5%, v ss =0v,t a = -40 to +85 c 4.0 v < v aref ST10F167's adc are programmable. the table below shows the timing calculations. notes 1: v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the con- version result in these cases will be x000 h or x3ff h , respectively. 2: during the sample time the input capacitance c i can be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitance to reach its final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. values for the sample clock t sc depend on programming and can be taken from the table parameter symbol limit values unit test condition min. max. analog input voltage range v ain sr v agnd v aref v1) sample time t s cc 2 t sc 2) 4) conversion time t c cc 14 t cc +t s + 4tcl 3) 4) total unadjusted error tue cc + 3 lsb 5) internal resistance of reference voltage source r aref sr t cc / 165 - 0.25 k w t cc in [ns] 6) 7) internal resistance of analog source r asrc sr t s / 330 - 0.25 k w t s in [ns] 2) 7) adc input capacitance c ain cc 33 pf 7) table 18 a/d converter characteristics adcon.15|14 (adctc) conversion clock t cc adcon.13|12 (adstc) sample clock t sc 00 tcl * 24 00 t cc 01 reserved, do not use 01 t cc *2 10 tcl * 96 10 t cc *4 11 tcl * 48 11 t cc *8 table 19 adc timing calculations
ST10F167 data sheet 53/78 42-1701-03 above. 3: this parameter includes the sample time t s , the time for determining the digital result and the time to load the result register with the conversion result. values for the conversion clock t cc depend on programming and can be taken from the table above. 4: this parameter depends on the adc control logic. it is not a real maximum value, but rather a fixum. 5: tue is tested at v aref =5.0v, v agnd =0v, v dd =4.9v. it is guaranteed by design character- ization for all other voltages within the defined voltage range. the specified tue is guaranteed only if an overload condition (see iov specification) occurs on maximum 2 not selected analog input pins and the absolute sum of input overload cur- rents on all analog input pins does not exceed 10 ma. during the reset calibration sequence the maximum tue may be 4 lsb. 6: during the conversion the adc's capacitance must be repeatedly charged or discharged. the internal resistance of the reference voltage source must allow the capacitance to reach its respective voltage level within t cc . the maximum internal resistance results from the pro- grammed conversion timing. 7: not 100% tested, guaranteed by design characterization.
ST10F167 42-1701-03 54/78 data sheet 20.5 ac characteristics 20.5.1 test waveforms 20.5.2 definition of internal timing the internal operation of the ST10F167 is controlled by the internal cpu clock f cpu . both edges of the cpu clock can trigger internal (e.g. pipeline) or external (e.g. bus cycles) operations. the specification of the external timing (ac characteristics) therefore depends on the time between two consecutive edges of the cpu clock, called atclo (see table 22). figure 11 input output waveforms figure 12 float waveforms 2.4v 0.45v test points 0.2v dd +0.9 0.2v dd +0.9 0.2v dd -0.1 0.2v dd -0.1 ac inputs during testing are driven at 2.4 v for a logic `1' and 0.4 v for a logic `0'. timing measurements are made at vih min for a logic `1' and vil max for a logic `0'. timing reference points vload +0.1v vload -0.1v voh -0.1v vol +0.1v vload vol voh for timing purposes a port pin is no longer floating when a 100 mv change from load voltageoccurs, butbeginsto floatwhena 100mvchangefromtheloadedv oh /v ol leveloccurs (i oh /i ol = 20 ma).
ST10F167 data sheet 55/78 42-1701-03 the cpu clock signal can be generated via different mechanisms. the duration of tcls and their variation (and also the derived external timing) depends on the mechanism used to generate f cpu . this infl uence must be taken into consideration when calculating the timings for the ST10F167. 20.5.3 direct drive when pin p0.15 (p0h.7) is low (`0') during reset the on-chip phase locked loop is disabled and the cpu clock is directly driven from the oscillator with the input clock signal. the frequency of f cpu directly follows the frequency of f xtal so the high and low time of f cpu (i.e. the duration of an individual tcl) is defined by the duty cycle of the input clock f xtal . the timings listed below that refer to tcls therefore must be calculated using the minimum tcl that is possible under the respective circumstances. this minimum value can be calculated via the following formula: for two consecutive tcls the deviation caused by the duty cycle of f xtal is compensated so the duration of 2tcl is always 1/f xtal . the minimum value tcl min therefore has to be used only once for timings that require an odd number of tcls (1,3,...). timings that require an even number of tcls (2,4,...) may use the formula: 2tcl = 1/f xtal. the address fl oat timings in multiplexed bus mode (t 11 and t 45 ) use the maximum duration of tcl (tcl max = 1/f xtal *dc max ) instead of tcl min . figure 13 generation mechanisms for the cpu clock tcl tcl tcl tcl f cpu f xtal f cpu f xtal phase locked loop operation direct clock drive tcl min 1 f M xtal *dc min = dc duty cycle =
ST10F167 42-1701-03 56/78 data sheet 20.5.4 phase locked loop when pin p0.15 (p0h.7) is high (`1') during reset the on-chip phase locked loop is enabled and provides the cpu clock. the pll multiplies the input frequency by 4 (i.e. f cpu =f xtal * 4). with every fourth transition of f xtal the pll circuit synchronizes the cpu clock to the input clock. this synchronization is done smoothly, i.e. the cpu clock frequency does not change abruptly. due to this adaptation to the input clock the frequency of f cpu is constantly adjusted so it is locked to f xtal . the slight variation causes a jitter of f cpu which also effects the duration of individual tcls. the timings listed in the ac characteristics that refer to tcls therefore must be calculated using the minimum tcl that is possible under the respective circumstances. the actual minimum value for tcl depends on the jitter of the pll. as the pll is constantly adjusting its output frequency so that it remains locked to the applied input frequency (crystal or oscillator) the relative deviation for periods of more than one tcl is lower than for one single tcl (see formula and figure below). for a period of n * tcl the minimum value is computed using the corresponding deviation d n : where n = number of consecutive tcls and 1 < n < 40. so for a period of 3 tcls (i.e. n = 3): this is especially important for bus cycles using waitstates and e.g. for the operation of timers, serial interfaces, etc. for all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the pll jitter is negligible. tcl min tcl nom * 1d n 100 M ) ( = d n 4 n15 ) % [] M ( = d 3 4315 M = 3.8% = tcl min tcl nom 1 3.8 100 M () = tcl nom 0.962 = 24.1 nsec@f cpu 20 mhz = ()
ST10F167 data sheet 57/78 42-1701-03 20.5.5 external clock drive xtal1 v dd =5v 5%, v ss =0v,t a = -40 to +85 c notes 1: theoretical minimum. the real minimum value depends on the duty cycle of the input clock signal. figure 14 approximated maximum pll jitter parameter symbol direct drive 1:1 pll 1:4 unit min. max. min. max. oscillator period t osc sr 50 1) 1000 200 333 ns high time t 1 sr256ns low time t 2 sr256ns rise time t 3 sr 10 10 ns fall time t 4 sr 10 10 ns table 20 external clock drive xtal1 this approximated formula is valid for 1 < n < 40 and 10mhz < f cpu < 20mhz. 32 16 8 4 2 1 2 3 4 max.jitter [%] n
ST10F167 42-1701-03 58/78 data sheet 20.5.6 memory cycle variables the timing tables below use three variables which are derived from the busconx registers and represent the special characteristics of the programmed memory cycle. the following table describes, how these variables are to be computed. 20.5.7 multiplexed bus v dd =5v 5% , v ss =0v , t a = -40 to +85 c c l (for port0, port1, port 4, ale, rd, wr, bhe, clkout) = 100 pf , c l (for port 6, cs) = 100 pf ale cycle time = 6 tcl + 2 t a + t c + t f (150 ns at 20-mhz cpu clock without waitstates) figure 15 external clock drive xtal1 description symbol values ale extension t a tcl * memory cycle time waitstates t c 2tcl * (15 - ) memory tristate time t f 2tcl * (1 - ) table 21 memory cycle variables parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a tcl - 10 + t a ns address setup to ale t 6 cc 0 + t a tcl - 25 + t a ns address hold after ale t 7 cc 15 + t a tcl - 10 + t a ns table 22 multiplexed bus characteristics t 1 t 3 t 4 v il t 2 t osc v ih2
ST10F167 data sheet 59/78 42-1701-03 ale falling edge to rd, wr (with rw-delay) t 8 cc 15 + t a tcl - 10 + t a ns ale falling edge to rd, wr (no rw-delay) t 9 cc -10 + t a -10 + t a ns address float after rd, wr (with rw-delay) t 10 cc 5 5 ns address float after rd, wr (no rw-delay) t 11 cc 30 tcl + 5 ns rd, wr low time (with rw-delay) t 12 cc 25 + t c 2tcl - 25 +t c ns rd, wr low time (no rw-delay) t 13 cc 65 + t c 3tcl - 10 +t c ns rd to valid data in (with rw-delay) t 14 sr 5 + t c 2tcl - 45 +t c ns rd to valid data in (no rw-delay) t 15 sr 55 + t c 3tcl - 20 +t c ns ale low to valid data in t 16 sr 40 + t a +t c 3tcl - 35 +t a +t c ns address to valid data in t 17 sr 60 +2t a +t c 4tcl - 40 +2t a +t c ns data hold after rd rising edge t 18 sr 0 0 ns data float after rd t 19 sr 35 + t f 2tcl - 15 + t f ns data valid to wr t 22 sr 15 + t c 2tcl - 35 +t c ns data hold after wr t 23 cc 35 + t f 2tcl - 15 +t f ns ale rising edge after rd, wr t 25 cc 35 + t f 2tcl - 15 +t f ns address hold after rd, wr t 27 cc 35 + t f 2tcl - 15 + t f ns ale falling edge to cs t 38 cc -5 - t a 10 - t a -5 - t a 10 - t a ns cs low to valid data in t 39 sr 45 +t c +2t a 3tcl - 30 +t c +2t a ns parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. table 22 multiplexed bus characteristics
ST10F167 42-1701-03 60/78 data sheet cs hold after rd, wr t 40 cc 60 + t f 3tcl - 15 + t f ns ale fall. edge to rdcs, wrcs (with rw delay) t 42 cc 20 + t a tcl - 5 + t a ns ale fall. edge to rdcs, wrcs (no rw delay) t 43 cc -5 + t a -5+t a ns address float after rdcs, wrcs (with rw delay) t 44 cc 0 0 ns address float after rdcs, wrcs (no rw delay) t 45 cc 25 tcl ns rdcs to valid data in (with rw delay) t 46 sr 15 + t c 2tcl - 35 +t c ns rdcs to valid data in (no rw delay) t 47 sr 50 + t c 3tcl - 25 +t c ns rdcs, wrcs low time (with rw delay) t 48 cc 40 + t c 2tcl - 10 +t c ns rdcs, wrcs low time (no rw delay) t 49 cc 65 + t c 3tcl - 10 +t c ns data valid to wrcs t 50 cc 35 + t c 2tcl - 15 +t c ns data hold after rdcs t 51 sr 0 0 ns data float after rdcs t 52 sr 30 + t f 2tcl - 20 + t f ns address hold after rdcs, wrcs t 54 cc 30 + t f 2tcl - 20 + t f ns data hold after wrcs t 56 cc 30 + t f 2tcl - 20 + t f ns parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. table 22 multiplexed bus characteristics
ST10F167 data sheet 61/78 42-1701-03 figure 16 external memory cycle: multiplexed bus, with read/write delay, normal ale data in data out address address t 38 t 44 t 10 address ale csx a23-a16 (a15-a8) bhe bus read cycle rd rdcsx bus write cycle wr, wrl, wrh wrcsx t 5 t 16 t 17 t 6 t 7 t 39 t 40 t 25 t 27 t 18 t 19 t 14 t 46 t 12 t 48 t 10 t 22 t 23 t 44 t 12 t 48 t 8 t 42 t 42 t 8 t 50 t 51 t 54 t 52 t 56
ST10F167 42-1701-03 62/78 data sheet figure 17 external memory cycle: multiplexed bus, with read/write delay, extended ale data out address data in address t 38 t 44 t 10 address ale csx a23-a16 (a15-a8) bhe bus read cycle rd rdcsx bus write cycle wr, wrl, wrh wrcsx t 5 t 16 t 17 t 6 t 7 t 39 t 40 t 25 t 27 t 18 t 19 t 14 t 46 t 12 t 48 t 10 t 22 t 23 t 44 t 12 t 48 t 8 t 42 t 42 t 8 t 50 t 51 t 54 t 52 t 56
ST10F167 data sheet 63/78 42-1701-03 figure 18 external memory cycle: multiplexed bus, no read/write delay, normal ale data out address address data in t 38 address ale csx a23-a16 (a15-a8) bhe bus read cycle rd rdcsx bus write cycle wr, wrl, wrh wrcsx t 5 t 16 t 17 t 6 t 7 t 39 t 40 t 25 t 27 t 18 t 19 t 15 t 47 t 13 t 49 t 22 t 23 t 13 t 49 t 9 t 43 t 43 t 9 t 11 t 45 t 11 t 45 t 50 t 51 t 54 t 52 t 56
ST10F167 42-1701-03 64/78 data sheet figure 19 external memory cycle: multiplexed bus, no read/write delay, extended ale data out address data in address t 38 address ale csx a23-a16 (a15-a8) bhe bus read cycle rd rdcsx bus write cycle wr, wrl, wrh wrcsx t 5 t 16 t 17 t 6 t 7 t 39 t 40 t 25 t 27 t 18 t 19 t 15 t 47 t 13 t 49 t 22 t 23 t 13 t 49 t 9 t 43 t 43 t 9 t 11 t 45 t 11 t 45 t 50 t 51 t 54 t 52 t 56
ST10F167 data sheet 65/78 42-1701-03 20.5.8 demultiplexed bus v dd =5v 5%,v ss =0v,t a = -40 to +85 c c l (for port0, port1, port 4, ale, rd, wr, bhe, clkout) = 100 pf, c l (for port 6, cs) = 100 pf ale cycle time = 4 tcl + 2t a +t c +t f (100 ns at 20-mhz cpu clock without waitstates) parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a tcl - 10 + t a ns address setup to ale t 6 cc 0 + t a tcl - 25 + t a ns ale falling edge to rd, wr (with rw-delay) t 8 cc 15 + t a tcl - 10 +t a ns ale falling edge to rd, wr (no rw-delay) t 9 cc -10 + t a -10 + t a ns rd, wr low time (with rw-delay) t 12 cc 25 + t c 2tcl - 25 +t c ns rd, wr low time (no rw-delay) t 13 cc 65 + t c 3tcl - 10 +t c ns rd to valid data in (with rw-delay) t 14 sr 5 + t c 2tcl - 45 +t c ns rd to valid data in (no rw-delay) t 15 sr 55 + t c 3tcl - 20 +t c ns ale low to valid data in t 16 sr 40 +t a +t c 3tcl - 35 +t a +t c ns address to valid data in t 17 sr 60 +2t a +t c 4tcl - 40 +2t a +t c ns data hold after rd rising edge t 18 sr 0 0 ns data float after rd rising edge (with rw-delay) t 20 sr 35 + t f 2tcl - 15 +t f ns data float after rd rising edge (no rw-delay) t 21 sr 15 + t f tcl - 10 +t f ns data valid to wr t 22 cc 15 + t c 2tcl - 35 +t c ns data hold after wr t 24 cc 15 + t f tcl - 10 + t f ns table 23 demultiplexed bus characteristics
ST10F167 42-1701-03 66/78 data sheet ale rising edge after rd, wr t 26 cc -10 + t f -10 +t f ns address hold after rd, wr t 28 cc -2.5 + t f -2.5 + t f ns ale falling edge to cs t 38 cc -5 - t a 10 - t a -5 - t a 10 - t a ns cs low to valid data in t 39 sr 45 +t c +2t a 3tcl - 30 +t c +2t a ns cs hold after rd, wr t 41 cc 10 + t f tcl - 15 + t f ns ale falling edge to rdcs, wrcs (with rw-delay) t 42 cc 20 + t a tcl - 5 + t a ns ale falling edge to rdcs, wrcs (no rw-delay) t 43 cc -5 + t a -5+t a ns rdcs to valid data in (with rw-delay) t 46 sr 15 + t c 2tcl - 35 +t c ns rdcs to valid data in (no rw-delay) t 47 sr 50 + t c 3tcl - 25 +t c ns rdcs, wrcs low time (with rw-delay) t 48 cc 40 + t c 2tcl - 10 +t c ns rdcs, wrcs low time (no rw-delay) t 49 cc 65 + t c 3tcl - 10 +t c ns data valid to wrcs t 50 cc 35 + t c 2tcl - 15 + t c ns data hold after rdcs t 51 sr 0 0 ns data float after rdcs (with rw-delay) t 53 sr 30 + t f 2tcl - 20 +t f ns data float after rdcs (no rw-delay) t 68 sr 5 + t f tcl - 20 +t f ns address hold after rdcs, wrcs t 55 cc -10 + t f -10 +t f ns data hold after wrcs t 57 cc 10 + t f tcl - 15 + t f ns parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. table 23 demultiplexed bus characteristics
ST10F167 data sheet 67/78 42-1701-03 figure 20 external memory cycle: demultiplexed bus, with read/write delay, normal ale data out data in t 38 address ale csx a23-a16 a15-a0 bhe bus (d15-d8) d7-d0 read cycle rd rdcsx write cycle wrcsx t 5 t 16 t 17 t 6 t 39 t 41 t 26 t 28 t 18 t 20 t 14 t 46 t 12 t 48 t 22 t 24 t 12 t 48 t 8 t 42 t 42 t 8 t 50 t 51 t 55 t 53 t 57 bus (d15-d8) d7-d0 wr, wrl, wrh
ST10F167 42-1701-03 68/78 data sheet figure 21 external memory cycle: demultiplexed bus, with read/write delay, extended ale data out data in t 38 address ale csx a23-a16 a15-a0 bhe read cycle rd rdcsx write cycle wrcsx t 5 t 16 t 17 t 6 t 39 t 41 t 26 t 28 t 18 t 20 t 14 t 46 t 12 t 48 t 22 t 24 t 12 t 48 t 8 t 42 t 42 t 8 t 50 t 51 t 55 t 53 t 57 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr, wrl, wrh
ST10F167 data sheet 69/78 42-1701-03 figure 22 external memory cycle: demultiplexed bus, no read/write delay, normal ale data out data in t 38 address ale csx a23-a16 a15-a0 bhe read cycle rd rdcsx write cycle wrcsx t 5 t 16 t 17 t 6 t 39 t 41 t 26 t 28 t 18 t 21 t 15 t 47 t 13 t 49 t 22 t 24 t 13 t 49 t 9 t 43 t 43 t 9 t 50 t 51 t 55 t 68 t 57 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr, wrl, wrh
ST10F167 42-1701-03 70/78 data sheet figure 23 external memory cycle: demultiplexed bus, no read/write delay, extended ale data out data in t 38 address ale csx a23-a16 a15-a0 bhe read cycle rd rdcsx write cycle wr, wrl, wrh wrcsx t 5 t 16 t 17 t 6 t 39 t 41 t 26 t 28 t 18 t 21 t 15 t 47 t 13 t 49 t 22 t 24 t 13 t 49 t 9 t 43 t 43 t 9 t 50 t 51 t 55 t 68 t 57 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
ST10F167 data sheet 71/78 42-1701-03 20.5.9 clkout and ready v dd =5v 5%, v ss =0v , t a = -40 to +85 c c l (for port0, port1, port 4, ale, rd, wr, bhe, clkout) = 100 pf , c l (for port 6, cs) = 100 pf notes 1: these timings are given for test purposes only, in order to assure recognition at a specific clock edge. 2: demultiplexed bus is the worst case. for multiplexed bus 2tcl are to be added to the max- imum values. this adds even more time for deactivating ready. the 2t a and 2t c refer to the next bus cycle, t f refers to the current bus cycle. parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. clkout cycle time t 29 cc 50 50 2tcl 2tcl ns clkout high time t 30 cc 20 tcl 5 ns clkout low time t 31 cc 15 tcl 10 ns clkout rise time t 32 cc 5 5 ns clkout fall time t 33 cc 10 10 ns clkout rising edge to ale falling edge t 34 cc -5 + t a 10 + t a -5 + t a 10 + t a ns synchronous ready setup time to clkout t 35 sr 30 30 ns synchronous ready hold time after clkout t 36 sr 0 0 ns asynchronous ready low time t 37 sr 65 2tcl + 15 ns asynchronous ready setup time 1) t 58 sr 15 15 ns asynchronous ready hold time 1) t 59 sr 0 0 ns async. ready hold time after rd, wr high (de- multiplexed bus) 2) t 60 sr 0 0 + t c +2t a +t f 2) 0 tcl - 25 +t c +2t a +t f 2) ns table 24 clkout and ready
ST10F167 42-1701-03 72/78 data sheet notes 1: cycle as programmed, including mctc waitstates (example shows 0 mctc ws). 2: the leading edge of the respective command depends on rw-delay. 3: ready sampled high at this sampling point generates a ready controlled waitstate, ready sampled low at this sampling point terminates the currently running bus cycle. 4: ready may be deactivated in response to the trailing (rising) edge of the corresponding command (rd or wr). 5: if the asynchronous ready signal does not fulfil the indicated setup and hold times with respect to clkout (e.g. because clkout is not enabled), it must fulfil t 37 in order to be safely synchronized. this is guaranteed, if ready is removed in response to the command (see note 4) ). 6: multiplexed bus modes have a mux waitstate added after a bus cycle, and an additional mttc waitstate may be inserted here. for a multiplexed bus with mttc waitstate this delay is 2 clkout cycles, for a demulti- plexed bus without mttc waitstate this delay is zero. 7: the next external bus cycle may start here. figure 24 clkout and ready clkout ale t 30 t 34 sync ready t 35 t 36 t 35 t 36 async ready t 58 t 59 t 58 t 59 waitstate ready mux/tristate 6) t 32 t 33 t 29 running cycle 1) t 31 t 37 3) 3) 5) command rd, wr t 60 4) see 6) 2) 7) 3) 3)
ST10F167 data sheet 73/78 42-1701-03 20.5.10 external bus arbitration vdd =5v 5%, v ss =0v , t a = -40 to +85 c c l (for port0, port1, port 4, ale, rd, wr, bhe, clkout) = 100 pf , c l (for port 6, cs) = 100 pf. parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. hold input setup time to clkout t 61 sr 35 35 ns clkout to hlda high or breq low delay t 62 cc 20 20 ns clkout to hlda low or breq high delay t 63 cc 20 20 ns csx release t 64 cc 20 20 ns csx drive t 65 cc -5 25 -5 25 ns other signals release t 66 cc 20 20 ns other signals drive t 67 cc -5 25 -5 25 ns table 25 external bus arbitration
ST10F167 42-1701-03 74/78 data sheet notes 1: the ST10F167 will complete the currently running bus cycle before granting bus access. 2: this is the first possibility for breq to get active. 3: the cs outputs will be resistive high (pullup) after t 64 . figure 25 external bus arbitration, releasing the bus clkout hold t 61 hlda t 63 other signals t 66 1) csx (on p6.x) t 64 1) 2) breq t 62 3)
ST10F167 data sheet 75/78 42-1701-03 notes 1: this is the last chance for breq to trigger the indicated regain-sequence. even if breq is activated earlier, the regain-sequence is initiated by hold going high. please note that hold may also be deactivated without the ST10F167 requesting the bus. 2: the next ST10F167 driven bus cycle may start here. figure 26 external bus arbitration (regaining the bus) clkout hold hlda other signals t 62 csx (on p6.x) t 67 t 62 1) 2) t 65 t 61 breq t 63 t 62
ST10F167 42-1701-03 76/78 data sheet 21 package mechanical data 22 ordering information figure 27 package outline pqfp144 (28 x 28 mm) salestype temperature range package ST10F167 -q6 -40 cto85 c pqfp144 (28 x 28) vr02061a dim mm inches min ty max min ty max a 4.07 0.106 a1 0.25 0.010 a2 3.17 3.42 3.67 0.125 0.315 0.144 b 0.22 0.38 0.009 0.015 c 0.13 0.23 0.005 0.009 d 30.95 31.20 31.45 1.129 1.228 1.238 d1 27.90 28.00 28.10 1.098 1.120 1.106 d3 22.75 0.896 e 0.65 0.02- e 30.95 31.20 31.45 1.219 1.228 1.238 e1 27.90 28.00 28.10 1.098 1.102 1.106 e3 22.75 0.896 l 0.65 0.80 0.95 0.026 0.031 0.037 l1 1.60 0.063 k0 (min), 7 (max) number of pins n1 144
ST10F167 data sheet 77/78 42-1701-03 23 revision history this is revision 3 of this document. the differences between rev 3 and rev 2 are as follows: ? update of the st logo and company name. ? re-formating of the micron symbol for correct transfer onto web. ? preliminary data becomes data sheet the differences between rev 2 and rev 1 are as follows: agpt1 timer input frequencies, resolution and periodso on page 28 table added agpt2 timer input frequencies, resolution and periodo on page 29 table added apwm unit frequencies and resolution at 20mhz cpu clocko on page 31 table added asynchronous baud rate and reload valueso on page 35 table added awatchdog timer rangeo on page 36 table added abootstrap loadero on page 38 text changed page format of the datasheet cover changed
ST10F167 42-1701-03 78/78 data sheet information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of stmicroelectronics. the st logo is a registered trademark of stmicroelectronics ? 1998 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - brazil - canada - china - france - germany - italy - japan - korea - malaysia - malta - mexico - morocco the netherlands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a. ?


▲Up To Search▲   

 
Price & Availability of ST10F167

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X